home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmssssyyyynnnncccc((((2222)))) mmmmssssyyyynnnncccc((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _mmmm_ssss_yyyy_nnnn_cccc - synchronize memory with physical storage
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_mmmm_mmmm_aaaa_nnnn_...._hhhh_>>>>
- _iiii_nnnn_tttt _mmmm_ssss_yyyy_nnnn_cccc_((((_vvvv_oooo_iiii_dddd _****_aaaa_dddd_dddd_rrrr_,,,, _ssss_iiii_zzzz_eeee______tttt _llll_eeee_nnnn_,,,, _iiii_nnnn_tttt _ffff_llll_aaaa_gggg_ssss_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The function _mmmm_ssss_yyyy_nnnn_cccc writes all modified copies of pages over the range
- [_a_d_d_r, _a_d_d_r + _l_e_n) to their backing storage locations. _mmmm_ssss_yyyy_nnnn_cccc optionally
- invalidates any copies so that further references to the pages will be
- obtained by the system from their backing storage locations. The backing
- storage for a modified _MMMM_AAAA_PPPP______SSSS_HHHH_AAAA_RRRR_EEEE_DDDD mapping is the file the page is mapped
- to; the backing storage for a modified _MMMM_AAAA_PPPP______PPPP_RRRR_IIII_VVVV_AAAA_TTTT_EEEE mapping is its swap
- area.
-
- _f_l_a_g_s is a bit pattern built from the following values:
-
- _MMMM_SSSS______AAAA_SSSS_YYYY_NNNN_CCCC perform asynchronous writes
- _MMMM_SSSS______SSSS_YYYY_NNNN_CCCC perform synchronous writes
- _MMMM_SSSS______IIII_NNNN_VVVV_AAAA_LLLL_IIII_DDDD_AAAA_TTTT_EEEE invalidate mappings
-
- If _MMMM_SSSS______AAAA_SSSS_YYYY_NNNN_CCCC is set, _mmmm_ssss_yyyy_nnnn_cccc returns immediately once all write operations
- are scheduled; if _MMMM_SSSS______SSSS_YYYY_NNNN_CCCC is set, _mmmm_ssss_yyyy_nnnn_cccc does not return until all write
- operations are completed.
-
- _MMMM_SSSS______IIII_NNNN_VVVV_AAAA_LLLL_IIII_DDDD_AAAA_TTTT_EEEE invalidates all cached copies of data in memory, so that
- further references to the pages will be obtained by the system from their
- backing storage locations.
-
- _m_s_y_n_c will fail if:
-
- [EINVAL] If _a_d_d_r is not a multiple of the page size as returned by
- _ssss_yyyy_ssss_cccc_oooo_nnnn_ffff(3C).
-
- [EIO] An I/O error occurred while reading from or writing to the
- file system.
-
- [ENOMEM] Addresses in the range (_a_d_d_r, _a_d_d_r + _l_e_n) are outside the
- valid range for the address space of a process or pages
- not mapped are specified.
-
- [EBUSY] MMMMSSSS____IIIINNNNVVVVAAAALLLLIIIIDDDDAAAATTTTEEEE was specified and one or more of the pages
- was locked in memory.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _mmmm_mmmm_aaaa_pppp(2), _mmmm_pppp_iiii_nnnn(2), _ssss_yyyy_ssss_cccc_oooo_nnnn_ffff(3C).
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmssssyyyynnnncccc((((2222)))) mmmmssssyyyynnnncccc((((2222))))
-
-
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, the function _mmmm_ssss_yyyy_nnnn_cccc returns 0; otherwise, it
- returns -1 and sets _eeee_rrrr_rrrr_nnnn_oooo to indicate the error.
-
- NNNNOOOOTTTTEEEESSSS
- _mmmm_ssss_yyyy_nnnn_cccc should be used by programs that require a memory object to be in a
- known state, for example, in building transaction facilities.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-